package com.spring.log;


import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author:liuwei
 * @creatdate:2021-07-15-14:43
 */
public class AfterLog implements AfterReturningAdvice {

	@Override
	//o: 返回值
	public void afterReturning(Object o, Method method, Object[] orgs, Object target) throws Throwable {
		System.out.println("执行了:"+ method.getName() + ",返回的结果为:" + o);
	}
}
